package com.xinliu.fastchat.context;

/*
 @author: xinliu
 @email: 3536370493@qq.com
 @time : 2025/9/24 15:37
*/

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class BaseContext {

    private static ThreadLocal threadLocal = new ThreadLocal();

    private BaseContext() {
    }

    public static void setId(Integer id) {
        threadLocal.set(id);
    }

    public static Integer getId() {
        return (Integer) threadLocal.get();
    }


}
